<?php
/**
 * @link http://cn2.php.net/manual/en/migration54.incompatible.php
 * @version $Id: 11_hash_remove.php 211 2012-03-02 10:56:14Z horseluke@126.com $
 */

/*
11. The Salsa10 and Salsa20 hash algorithms have been removed.

备注：
5.3版本加入的，5.4版本就去掉了。原因未知。
详细信息：http://cn2.php.net/manual/en/function.hash-algos.php


PHP 5.3:
md5:698d51a19d8a121ce581499d7b701668

Salsa10:2d64b2ef41cccb4d6afc78197cbceb30c4aa34bc6cd25bed04a3ad946dd99cefee62c4a1
c2377bff520eac9b61208ff655ffb26fa188359c1e8ddc657055e1c5

Salsa20:6cb0d4c3f6ac89cc0e19c5ae940be0ba7b51e7a270eb6270e318a289c2ec5d7757b4ec44
473f19ab3815805267f5856fab2ef5e6909d594f0c9bc3c321c0b47b

PHP 5.4:
md5:698d51a19d8a121ce581499d7b701668


Warning: hash(): Unknown hashing algorithm: Salsa10 in D:\htdoc_custom\php_5_4\1
1_hash_remove.php on line 30
Salsa10:


Warning: hash(): Unknown hashing algorithm: Salsa20 in D:\htdoc_custom\php_5_4\1
1_hash_remove.php on line 32
Salsa20:

*/
error_reporting(E_ALL);

$data = '111';


echo 'md5:'.hash('md5', $data). "\r\n\r\n";

echo 'Salsa10:'.hash('Salsa10', $data). "\r\n\r\n";

echo 'Salsa20:'.hash('Salsa20', $data). "\r\n\r\n";